//
//  BaseImageCropperViewController.h
//  LAEducation
//
//  Created by Jxt on 14-12-16.
//  Copyright (c) 2014年 13980.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ImageCropperDelegate;

@interface BaseImageCropperViewController : UIViewController

@property (nonatomic, assign) NSInteger tag;
@property (nonatomic, assign) id<ImageCropperDelegate> delegate;

@property (nonatomic, assign) CGRect cropFrame;
@property (nonatomic, assign) CGFloat limitScale;

- (instancetype)initWithImage:(UIImage *)sourceImage cropFrame:(CGRect)cropFrame limitScale:(NSInteger)limitScale;

@end

@protocol ImageCropperDelegate <NSObject>

- (void)imageCropper:(BaseImageCropperViewController *)cropperViewController didFinished:(UIImage *)editedImage;

- (void)imageCropperDidCancel:(BaseImageCropperViewController *)cropperViewController;

@end
